import request from "@/utils/request";

// 查询护理人员请假列表
export function listNurseLeave(query) {
  return request({
    url: "/system/nurse/leave/list",
    method: "get",
    params: query,
  });
}

// 查询护理人员请假详细
export function getNurseLeave(leaveId) {
  return request({
    url: "/system/nurse/leave/" + leaveId,
    method: "get",
  });
}

// 新增护理人员请假
export function addNurseLeave(data) {
  return request({
    url: "/system/nurse/leave",
    method: "post",
    data: data,
  });
}

// 修改护理人员请假
export function updateNurseLeave(data) {
  return request({
    url: "/system/nurse/leave",
    method: "put",
    data: data,
  });
}

// 删除护理人员请假
export function delNurseLeave(leaveId) {
  return request({
    url: "/system/nurse/leave/" + leaveId,
    method: "delete",
  });
}

// 审核护理人员请假
export function auditNurseLeave(leaveId, data) {
  return request({
    url: "/system/nurse/leave/audit/" + leaveId,
    method: "put",
    data: data,
  });
}
